<template>
    <div class="container">
        <el-menu
                default-active="2"
                class="el-menu-vertical-demo"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                router>
            <el-menu-item class="menu-title">
                <span slot="title">商户管理</span>
            </el-menu-item>
            <el-menu-item index="/mgrPage/shopMgr">
                <i class="el-icon-s-shop"></i>
                <span slot="title">门店管理</span>
            </el-menu-item>
            <el-menu-item index="/mgrPage/goodsMgr">
                <i class="el-icon-s-goods"></i>
                <span slot="title">店铺商品</span>
            </el-menu-item>
            <el-menu-item index="/mgrPage/orderMgr">
                <i class="el-icon-s-order"></i>
                <span slot="title">订单管理</span>
            </el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        name: "LeftBar"
    }
</script>

<style scoped>
    .container {
        width: 200px;
        height: 100%;
        position: fixed;
    }

    .el-menu-vertical-demo {
        width: 200px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100%;
    }

    .menu-title {
        text-align: center;
        letter-spacing: 4px;
        font-size: 18px;
        border-bottom: gray solid 1px;
        cursor: default;
    }
</style>
